/*
 *   This file is part of Adventure Author.
 *
 *   Adventure Author is copyright Heriot-Watt University 2006-2008.
 *
 *   This copyright and licence apply to all source code, compiled code,
 *   documentation, graphics and auxiliary files, except where otherwise stated.
 *
 *   Adventure Author is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   Adventure Author is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 * 
 *   Adventure Author is a plugin for Atari's Neverwinter Nights 2, a COMMERCIAL
 *   product. Permission is given to link this GPL-covered plug-in with the 
 *   non-free main program. 
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

using System;

namespace AdventureAuthor.Ideas
{
	/// <summary>
	/// Arguments to accompany events relating to magnet controls.
	/// </summary>
	public class MagnetEventArgs : EventArgs
	{
		/// <summary>
		/// The magnet relating to the event.
		/// </summary>
		private MagnetControl magnet;		
		public MagnetControl Magnet {
			get { return magnet; }
		}
		
		
		/// <summary>
		/// Create a new MagnetEventArgs.
		/// </summary>
		/// <param name="magnet">The magnet relating to the event</param>
		public MagnetEventArgs(MagnetControl magnet)
		{
			this.magnet = magnet;
		}
	}
}
